package com.qingluan.dd;

import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.view.Menu;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

public class OnePointDetailInfo extends Activity {
	//misison argu area
	
	private String title ;
	
	//context argu area
	private Context context_this_activity;
	private static final String tag = OnePointDetailInfo.class.getName();
	//widget argu area
	private TextView textView;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_one_point_detail_info);
		context_this_activity = getApplicationContext();
		textView = (TextView)findViewById(R.id.one_map_mission_info);
		
		
		title = getIntent().getStringExtra("title");
		textView.setText(title);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.one_point_detail_info, menu);
		return true;
	}
	
	
	public void  Commit(View view) {
		Toast.makeText(context_this_activity, title, Toast.LENGTH_SHORT).show();
	}

}
